package base;

import base.domain.Rectangle;
import base.domain.Triangle;
import base.prototype.framework.Manager;
import base.prototype.framework.Product;

/**
 * @program: DesignPatterns
 * @description: 测试
 * @author: Mr.Dai
 * @create: 2018-05-28 21:52
 **/
public class MainT {

    public static void main(String[] args) {
        Manager manager = new Manager();

        Rectangle r1 = new Rectangle();
        Triangle t1 = new Triangle();
        manager.registers("a",r1);
        manager.registers("b",t1);
        Product a = manager.createObj("a");
        a.use(5);
        Product b = manager.createObj("b");
        b.use(5);
    }
}
